.class Lcom/baidu/mobad/nativevideo/c;
.super Ljava/lang/Object;
.source "SourceFile"

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Lcom/baidu/mobad/nativevideo/PatchVideoNative;


# direct methods
.method constructor <init>(Lcom/baidu/mobad/nativevideo/PatchVideoNative;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/baidu/mobad/nativevideo/c;->a:Lcom/baidu/mobad/nativevideo/PatchVideoNative;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 4

    .line 1
    iget-object v0, p0, Lcom/baidu/mobad/nativevideo/c;->a:Lcom/baidu/mobad/nativevideo/PatchVideoNative;

    invoke-static {v0}, Lcom/baidu/mobad/nativevideo/PatchVideoNative;->b(Lcom/baidu/mobad/nativevideo/PatchVideoNative;)Lcom/baidu/mobad/nativevideo/PatchVideoNative$IPatchVideoNativeListener;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/baidu/mobad/nativevideo/c;->a:Lcom/baidu/mobad/nativevideo/PatchVideoNative;

    invoke-static {v0}, Lcom/baidu/mobad/nativevideo/PatchVideoNative;->b(Lcom/baidu/mobad/nativevideo/PatchVideoNative;)Lcom/baidu/mobad/nativevideo/PatchVideoNative$IPatchVideoNativeListener;

    move-result-object v0

    iget-object v1, p0, Lcom/baidu/mobad/nativevideo/c;->a:Lcom/baidu/mobad/nativevideo/PatchVideoNative;

    invoke-static {v1}, Lcom/baidu/mobad/nativevideo/PatchVideoNative;->c(Lcom/baidu/mobad/nativevideo/PatchVideoNative;)Lcom/baidu/mobad/nativevideo/e;

    move-result-object v1

    invoke-interface {v1}, Lcom/baidu/mobad/nativevideo/e;->getMaterialType()Ljava/lang/String;

    move-result-object v1

    invoke-interface {v0, v1}, Lcom/baidu/mobad/nativevideo/PatchVideoNative$IPatchVideoNativeListener;->onAdLoad(Ljava/lang/String;)V

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/baidu/mobad/nativevideo/c;->a:Lcom/baidu/mobad/nativevideo/PatchVideoNative;

    new-instance v1, Lcom/baidu/mobads/h/b;

    iget-object v2, p0, Lcom/baidu/mobad/nativevideo/c;->a:Lcom/baidu/mobad/nativevideo/PatchVideoNative;

    invoke-static {v2}, Lcom/baidu/mobad/nativevideo/PatchVideoNative;->d(Lcom/baidu/mobad/nativevideo/PatchVideoNative;)Landroid/content/Context;

    move-result-object v2

    invoke-direct {v1, v2}, Lcom/baidu/mobads/h/b;-><init>(Landroid/content/Context;)V

    invoke-static {v0, v1}, Lcom/baidu/mobad/nativevideo/PatchVideoNative;->a(Lcom/baidu/mobad/nativevideo/PatchVideoNative;Lcom/baidu/mobads/h/b;)Lcom/baidu/mobads/h/b;

    .line 4
    iget-object v0, p0, Lcom/baidu/mobad/nativevideo/c;->a:Lcom/baidu/mobad/nativevideo/PatchVideoNative;

    invoke-static {v0}, Lcom/baidu/mobad/nativevideo/PatchVideoNative;->f(Lcom/baidu/mobad/nativevideo/PatchVideoNative;)Lcom/baidu/mobads/h/b;

    move-result-object v0

    iget-object v1, p0, Lcom/baidu/mobad/nativevideo/c;->a:Lcom/baidu/mobad/nativevideo/PatchVideoNative;

    invoke-static {v1}, Lcom/baidu/mobad/nativevideo/PatchVideoNative;->e(Lcom/baidu/mobad/nativevideo/PatchVideoNative;)Z

    move-result v1

    invoke-virtual {v0, v1}, Lcom/baidu/mobads/h/b;->a(Z)V

    .line 5
    iget-object v0, p0, Lcom/baidu/mobad/nativevideo/c;->a:Lcom/baidu/mobad/nativevideo/PatchVideoNative;

    invoke-static {v0}, Lcom/baidu/mobad/nativevideo/PatchVideoNative;->g(Lcom/baidu/mobad/nativevideo/PatchVideoNative;)Landroid/widget/RelativeLayout;

    move-result-object v0

    iget-object v1, p0, Lcom/baidu/mobad/nativevideo/c;->a:Lcom/baidu/mobad/nativevideo/PatchVideoNative;

    invoke-static {v1}, Lcom/baidu/mobad/nativevideo/PatchVideoNative;->f(Lcom/baidu/mobad/nativevideo/PatchVideoNative;)Lcom/baidu/mobads/h/b;

    move-result-object v1

    new-instance v2, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v3, -0x1

    invoke-direct {v2, v3, v3}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v1, v2}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V

    .line 6
    iget-object v0, p0, Lcom/baidu/mobad/nativevideo/c;->a:Lcom/baidu/mobad/nativevideo/PatchVideoNative;

    invoke-static {v0}, Lcom/baidu/mobad/nativevideo/PatchVideoNative;->f(Lcom/baidu/mobad/nativevideo/PatchVideoNative;)Lcom/baidu/mobads/h/b;

    move-result-object v0

    new-instance v1, Lcom/baidu/mobad/nativevideo/d;

    invoke-direct {v1, p0}, Lcom/baidu/mobad/nativevideo/d;-><init>(Lcom/baidu/mobad/nativevideo/c;)V

    invoke-virtual {v0, v1}, Lcom/baidu/mobads/h/b;->a(Lcom/baidu/mobads/h/a;)V

    .line 7
    iget-object v0, p0, Lcom/baidu/mobad/nativevideo/c;->a:Lcom/baidu/mobad/nativevideo/PatchVideoNative;

    invoke-static {v0}, Lcom/baidu/mobad/nativevideo/PatchVideoNative;->f(Lcom/baidu/mobad/nativevideo/PatchVideoNative;)Lcom/baidu/mobads/h/b;

    move-result-object v0

    iget-object v1, p0, Lcom/baidu/mobad/nativevideo/c;->a:Lcom/baidu/mobad/nativevideo/PatchVideoNative;

    invoke-static {v1}, Lcom/baidu/mobad/nativevideo/PatchVideoNative;->c(Lcom/baidu/mobad/nativevideo/PatchVideoNative;)Lcom/baidu/mobad/nativevideo/e;

    move-result-object v1

    check-cast v1, Lcom/baidu/mobad/nativevideo/XAdVideoResponse;

    invoke-virtual {v0, v1}, Lcom/baidu/mobads/h/b;->a(Lcom/baidu/mobad/nativevideo/XAdVideoResponse;)V

    return-void
.end method
